<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title></title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/statics/admin/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/statics/admin/css/admin.css"/>
</head>

<body>
<form class="layui-form-pane column-content-detail" method="post"
      action="${pageContext.request.contextPath}/admin/addExercise.do">
    <div class="layui-tab">
        <ul class="layui-tab-title">
            <li class="layui-this">添加试卷</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <div class="layui-form-item">
                    <label class="layui-form-label">试卷名:</label>
                    <div class="layui-input-block">
                        <input type="text" name="title" class="layui-input" placeholder="请输入试卷名" required/>
                    </div>
                    <p style="color: red;margin-top: 5pt">${msg}</p>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-form-item" style="padding-left: 10px;">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal"
                    onclick="if (confirm('确认提交吗?') === false) return false;">
                提交
            </button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            <a style="margin: 5px" class="layui-btn layui-btn-primary"
               href="${pageContext.request.contextPath}/admin/toExerciseList.do">返回</a>
        </div>
    </div>
</form>
<script src="${pageContext.request.contextPath}/statics/admin/layui/layui.js" type="text/javascript"
        charset="utf-8"></script>
<script src="${pageContext.request.contextPath}/statics/admin/js/common.js" type="text/javascript"
        charset="utf-8"></script>
</body>

</html>